package org.ascollada.fx
{
	import org.ascollada.core.DaeDocument;
	import org.ascollada.core.DaeElement;
	import org.ascollada.core.ns.collada;
	import org.ascollada.utils.DaeLogger;

	public class DaeBindVertexInput extends DaeElement
	{
		use namespace collada;
		
		public var semantic :String;
		public var input_semantic :String;
		public var input_set :int;
		
		/**
		 * 
		 */ 
		public function DaeBindVertexInput(document:DaeDocument, element:XML=null)
		{
			super(document, element);
		}
		
		/**
		 * 
		 */ 
		public override function read(element:XML):void
		{
			super.read(element);
			
			this.semantic = readAttribute(element, "semantic");
			this.input_semantic = readAttribute(element, "input_semantic");
			
			var tmp :String = readAttribute(element, "input_set");
			
			this.input_set = tmp && tmp.length ? parseInt(tmp, 10) : 0;
		}
	}
}